﻿using System;
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using O1.Kernel;

namespace Tests.O1
{
    [TestClass]
    public class TextExtensionsTests
    {
        [TestMethod, TestCategory("Unit Test")]
        public void TextExtensionsToFormatIsSameAsStringFormat()
        {
            var expected = string.Format("{0},{1}", "test", "123");
            var actual = "{0},{1}".ToFormat("test", "123");
            actual.Should().Be(expected);
        }
    }
}
